package router

import (
	"github.com/gin-gonic/gin"
	"weekly-exam/internal/api/user"
)

func UserRouter(router *gin.RouterGroup) {
	userModel := router.Group("user")
	{
		userModel.POST("list", user.List)
		userModel.POST("addFriend", user.AddFriend)
		userModel.GET("userChat", user.ChatUser)
		userModel.POST("update", user.Update)
		userModel.POST("upload", user.Upload)
	}
}
